from app.db.database import DBase
from sqlalchemy import Boolean, Column, Integer, String, DateTime, null
from datetime import date
import uuid

class Elevator(DBase):
    __tablename__ = "Elevators"

    uuid = Column(String(32), primary_key=True, default=uuid.uuid4())
    uno = Column(String(8), unique=True, nullable=False)
    useUnit = Column(String(100), index=True, nullable=False)
    detectUnit = Column(String(100), nullable=False)

    is_active = Column(String(10))
    created_time = Column(DateTime, default=date.today())